﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                   assembly="Core"
                   namespace="Core.Model">
  <class name="Auditoria" table="AUDITORIA">
    <id name="Id" column="ID">
      <generator class="native">
        <param name="sequence">GEN_ID_AUDITORIA</param>
      </generator>
    </id>
    <property name="DataOperacao" column="DATA_OPERACAO" not-null="true" />
    <property name="HoraOperacao" column="HORA_OPERACAO" not-null="true" />
    <many-to-one name="FerramentaEntity" column="FERRAMENTA_ID" cascade="save-update" />
    <many-to-one name="OperadorEntity" column="USUARIO_ID" cascade="save-update" />
    <property name="Descricao" column="DESCRICAO" length="200" not-null="true" />
    <property name="Resultado" column="RESULTADO" not-null="true" />
  </class>
</hibernate-mapping>